<template>
  <master :title="title">
    <listpage ref="listpage"></listpage>
  </master>
</template>
<script type="text/javascript">
(function (G) {
var _this = null;
G.vue({
  "usingComponents": {///引入组件
    "master": "/components/Master/Master",///母版组件
    "listpage": "/components/List/Page/Page",///通用列表组件
    "modal":"/components/Modal/Modal"
  },
  "enablePullDownRefresh": true
},G.modelList({///配置listpage组件
  	modelName:'t_process_steps',///entity名称
    title:'工艺步骤',
    listPage(list,query){///query为前一个页面传过来的参数
      let type = query.type
      list.getUrl = '/api/model/t_process_steps';///列表请求API
      if(query.type) list.getUrl += '&type=' + query.type
      list.searchKey = 'name'///搜索字段，来源于列表数据模型
      list.models.createTime = {
        label:'发布时间',
        unList:true,
        type:'datetime'
      }
      list.models.createTimeEND = {
        label:'结束时间',
        unList:true,
        type:'datetime'
      }
    },
    modeleditquery(edit,event,query){///编辑页面 edit对象，event事件，query前一个页面传过来的参数
      if(query.type){
        edit.values.type = query.type
        edit.models.type.type = ''
      }
      edit.models.createTime.type = ''
      edit.models.createTimeEND.type = ''
    }
  },{
    data:{
      contentStyle:'',
      show:false
    },
    mounted:function(query){
      _this = this
    }
  }));
})(Y)
</script>
<style scoped>
  
</style>